package com.dapeng.cleardatabackend.model.dto.user;

import com.dapeng.cleardatabackend.common.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author dapeng
 * @description 用户搜索请求
 * @date 2024/12/4 21:17
 */
@Data
@ApiModel(description = "用户搜索请求")
@EqualsAndHashCode(callSuper = true)
public class UserSearchRequest extends PageRequest implements Serializable {

    private static final long serialVersionUID = -378539961054497255L;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @Size(min = 4, max = 20, message = "用户账号长度需要在4-20位之间")
    private String username;
}


